﻿@page
@model IceDog.EFCore.ContosoUniversity.Pages.Enrollments.DetailsModel

@{
    ViewData["Title"] = "Details";
}

<h2>Details</h2>

<div>
    <h4>Enrollment</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.Enrollment.Grade)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.Enrollment.Grade)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.Enrollment.Course)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.Enrollment.Course.CourseID)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.Enrollment.Student)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.Enrollment.Student.ID)
        </dd>
    </dl>
</div>
<div>
    <a asp-page="./Edit" asp-route-id="@Model.Enrollment.EnrollmentID">Edit</a> |
    <a asp-page="./Index">Back to List</a>
</div>
